local TradeData = class("TradeData")

TradeData.TRADE_PURCHASE = 0
TradeData.TRADE_SALE = 1

function TradeData:ctor(_type,_goodsdata,_packindex) 
	self.tradeType = _type or TradeData.TRADE_TPURCHASE          
	self.packIndex = _packindex or 0
	self.goodsData = _goodsdata
end

function TradeData:setData(_type,_goodsdata,_packindex)
    self.tradeType = _type
	self.packIndex = _packindex
	self.goodsData = _goodsdata
end

return TradeData